package com.shop.user.atom.atomsvc;


import com.shop.common.entity.user.UserBase;
import com.shop.common.model.ServiceBean;

public interface IUserAtomSvc {

    ServiceBean<String> addUser();

    //新建买家用户
    ServiceBean<Integer> addUser(UserBase userBase);

    /**
     * 账号是否已使用
     * @param account 注册用的账号
     * @return
     */
    Boolean accountUse(String account);

    ServiceBean<UserBase> selectBaseUser(UserBase userBase);

    UserBase selectBaseUserByAccountMapping(String account);

    ServiceBean updateBaseUser(UserBase userBase);

    UserBase selectBaseUserById(Integer uid);
}
